package main

import "fmt"

//
//func changeData(data string)  {
//	data = "二哈"
//}
//func main() {
//	name := "武沛齐"
//	changeData(name)
//	fmt.Println(name)	//武沛齐
//
//}

//--------------------------------------------------

//func changeData(ptr *string)  {
//	*ptr = "二哈"
//}
//func main() {
//	name := "武沛齐"
//	changeData(&name)
//	fmt.Println(name)	//二哈
//
//}

//---------------------------------------------------
func main() {
	var username string
	fmt.Println("请输入用户名")
	fmt.Scanf("%s", &username)
	if username == "武沛齐" {
		fmt.Println("登陆成功")
	} else {
		fmt.Println("登陆失败")
	}
}
